package com.qubuyer.repository.entitys

import com.qubuyer.core.ext.format
import java.io.Serializable

class HomeSaleTopEntity : Serializable {
    //总销售额
    var total = 0f

    //昨天销售额
    var to_total = 0f

    var user: UserBeanXXX? = null

    fun beautyTotal(): String {
        return total.toDouble().format(2).toString()
    }

    fun beautyToTotal(): String {
        return to_total.toDouble().format(2).toString()
    }
}